// import http from '@/api/http'
//  export default {
// 	getBanner(postdata){
// 		return http.get('/api/bookshelf', postdata )
// 	},
//  }
import { getdata } from './request.js'
// 首页
export const getBanner = async (data) => {
	return getdata({
		url: '/api/bookshelf',
		method: 'get',
		data
	})
}
// 列表
export const getbooklist = (data) => {
	return getdata({
		url: '/api/booklist',
		method: 'get',
		data
	})
}
// 详情
export const getbookdetail = (data) =>{
	return getdata({
		url: '/api/bookdetail',
		method: 'get',
		data
	})
}
// 目录
export const getbookcata = (data) =>{
	return getdata({
		url: '/api/bookcata',
		method: 'get',
		data
	})
}
// 文章详情
export const getarticledetail = (data) =>{
	return getdata({
		url: '/api/article/detail',
		method: 'get',
		data
	})
}
// 评论列表
export const getbookcomment = (data) =>{
	return getdata({
		url: '/api/bookcomment',
		method: 'get',
		data
	})
}
// 保存评论
export const savebookcomment = (data) =>{
	return getdata({
		url: '/api/comment/save',
		method: 'post',
		data
	})
}
// 更新点赞
export const getlike = (data) => {
	return getdata({
		url: '/api/like',
		method: 'get',
		data
	})
}
// 点赞人数统计
export const getcount = (data) => {
	return getdata({
		url: '/api/count',
		method: 'get',
		data
	})
}
